/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.product;

import com.google.common.collect.Lists;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购产品skuEntity
 * @author 罗天文
 * @version 2018-05-16
 */
public class HkShopProductSku extends DataEntity<HkShopProductSku> {
	
	private static final long serialVersionUID = 1L;
	private HkShopProduct product;		// 商品id
	private String stocks;		// 库存
	private String weight;		// 重量
	private String marketPrice;		// 市场价
	private String costprice;		// 进货价
	private String price;		// 价格
	private String integral;		// 乐币
	private String number;		// 数量
	private String productColor;		// 颜色id
	private String productSpec;		// 规格id
	private Date starttime;		// 活动开始时间
	private Date endtime;		// 活动结束时间
	private String activityType;		// 活动类型
	private String activityPrice;		// 活动乐币
	private String activityStocks;		// 活动库存
	private List<HkShopProductSkuImages> skuImagesList = Lists.newArrayList();		// sku图片子表列表

	public List<HkShopProductSkuImages> getSkuImagesList() {
		return skuImagesList;
	}

	public void setSkuImagesList(List<HkShopProductSkuImages> skuImagesList) {
		this.skuImagesList = skuImagesList;
	}

	public HkShopProductSku() {
		super();
	}

	public HkShopProductSku(String id){
		super(id);
	}
	public HkShopProductSku(HkShopProduct product){
		this.product = product;
	}

	public HkShopProduct getProduct() {
		return product;
	}

	public void setProduct(HkShopProduct product) {
		this.product = product;
	}
	
	@Length(min=0, max=11, message="库存长度必须介于 0 和 11 之间")
	public String getStocks() {
		return stocks;
	}

	public void setStocks(String stocks) {
		this.stocks = stocks;
	}
	
	@Length(min=0, max=200, message="重量长度必须介于 0 和 200 之间")
	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}
	
	public String getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(String marketPrice) {
		this.marketPrice = marketPrice;
	}
	
	public String getCostprice() {
		return costprice;
	}

	public void setCostprice(String costprice) {
		this.costprice = costprice;
	}
	
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	@Length(min=0, max=11, message="乐币长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getProductColor() {
		return productColor;
	}

	public void setProductColor(String productColor) {
		this.productColor = productColor;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}
	
	@Length(min=0, max=2, message="活动类型长度必须介于 0 和 2 之间")
	public String getActivityType() {
		return activityType;
	}

	public void setActivityType(String activityType) {
		this.activityType = activityType;
	}
	
	@Length(min=0, max=11, message="活动乐币长度必须介于 0 和 11 之间")
	public String getActivityPrice() {
		return activityPrice;
	}

	public void setActivityPrice(String activityPrice) {
		this.activityPrice = activityPrice;
	}
	
	@Length(min=0, max=11, message="活动库存长度必须介于 0 和 11 之间")
	public String getActivityStocks() {
		return activityStocks;
	}

	public void setActivityStocks(String activityStocks) {
		this.activityStocks = activityStocks;
	}
	
}